package com.geek.factory.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * 诺诺网发票请求DTO
 */
@Data
@ApiModel("诺诺网发票请求参数")
public class InvoiceRequestDTO {

    @ApiModelProperty("订单编号")
    private String orderNo;

    @ApiModelProperty("购方名称")
    private String buyerName;

    @ApiModelProperty("购方地址")
    private String buyerAddress;

    @ApiModelProperty("购方税号")
    private String buyerTaxNum;

    @ApiModelProperty("购方手机")
    private String buyerPhone;

    @ApiModelProperty("邮箱地址")
    private String email;

    @ApiModelProperty("发票明细")
    private List<InvoiceDetailDTO> invoiceDetail;

    @Data
    @ApiModel("发票明细")
    public static class InvoiceDetailDTO {
        @ApiModelProperty("税率")
        private String taxRate;

        @ApiModelProperty("发票行性质")
        private String invoiceLineProperty;

        @ApiModelProperty("自编码")
        private String selfCode;

        @ApiModelProperty("清单名称")
        private String listName;

        @ApiModelProperty("规格型号")
        private String specType;

        @ApiModelProperty("商品名称")
        private String goodsName;

        @ApiModelProperty("商品编码")
        private String goodsCode;

        @ApiModelProperty("不含税金额")
        private String taxExcludedAmount;

        @ApiModelProperty("单价含税标志")
        private String withTaxFlag;

        @ApiModelProperty("数量")
        private String num;

        @ApiModelProperty("税额")
        private String tax;

        @ApiModelProperty("单位")
        private String unit;

        @ApiModelProperty("扣除额")
        private String deduction;

        @ApiModelProperty("单价")
        private String price;
    }
} 